using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN NamHocService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: NamHocService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class NamHocService : INamHocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: NamHoc_ID</para>
		/// <para>Output: NamHocEntity</para>
		///</summary>
		public NamHocEntity SelectOne(int NamHoc_ID){
			NamHocDAO dao = new NamHocDAO();
			return dao.SelectOne(NamHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaNamHoc</para>
		/// <para>Input: MaNamHoc</para>
		/// <para>Output: NamHocEntity</para>
		///</summary>
		public NamHocEntity SelectOneByMaNamHoc(int MaNamHoc){
			NamHocDAO dao = new NamHocDAO();
			return dao.SelectOneByMaNamHoc(MaNamHoc);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of NamHocEntity</para>
		///</summary>
		public List<NamHocEntity> SelectAll(){
			NamHocDAO dao = new NamHocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			NamHocDAO dao = new NamHocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of NamHocEntity</para>
		///</summary>
		public List<NamHocEntity> SelectAllFilter(string strFilter){
			NamHocDAO dao = new NamHocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			NamHocDAO dao = new NamHocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: NamHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(NamHocEntity o){
			NamHocDAO dao = new NamHocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: NamHocEntity</para>
		/// <para>Output: NamHocEntity</para>
		///</summary>
		public NamHocEntity SaveRet(NamHocEntity o){
			NamHocDAO dao = new NamHocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of NamHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<NamHocEntity> list){
			NamHocDAO dao = new NamHocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of NamHocEntity</para>
		/// <para>Output: List of NamHocEntity</para>
		///</summary>
		public List<NamHocEntity> SaveListRet(List<NamHocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: NamHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(NamHocEntity o){
			NamHocDAO dao = new NamHocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of NamHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<NamHocEntity> list){
			NamHocDAO dao = new NamHocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaNamHoc</para>
		/// <para>Input: NewMaNamHoc,NamHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaNamHoc(int NewMaNamHoc,int NamHoc_ID){
			NamHocDAO dao = new NamHocDAO();
			return dao.UpdateMaNamHoc(NewMaNamHoc,NamHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenNamHoc</para>
		/// <para>Input: NewTenNamHoc,NamHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenNamHoc(string NewTenNamHoc,int NamHoc_ID){
			NamHocDAO dao = new NamHocDAO();
			return dao.UpdateTenNamHoc(NewTenNamHoc,NamHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateNgayBatDau</para>
		/// <para>Input: NewNgayBatDau,NamHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNgayBatDau(DateTime NewNgayBatDau,int NamHoc_ID){
			NamHocDAO dao = new NamHocDAO();
			return dao.UpdateNgayBatDau(NewNgayBatDau,NamHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateNgayKetThuc</para>
		/// <para>Input: NewNgayKetThuc,NamHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNgayKetThuc(DateTime NewNgayKetThuc,int NamHoc_ID){
			NamHocDAO dao = new NamHocDAO();
			return dao.UpdateNgayKetThuc(NewNgayKetThuc,NamHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateNamHocHienTai</para>
		/// <para>Input: NewNamHocHienTai,NamHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNamHocHienTai(bool NewNamHocHienTai,int NamHoc_ID){
			NamHocDAO dao = new NamHocDAO();
			return dao.UpdateNamHocHienTai(NewNamHocHienTai,NamHoc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: NamHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(NamHocEntity o){
			NamHocDAO dao = new NamHocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: NamHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int NamHoc_ID){
			NamHocDAO dao = new NamHocDAO();
			return dao.DeleteByID(NamHoc_ID);
		}
		#endregion

		#region Select,delete by NamHoc_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END NamHocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

